package com.zlp.oss.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/12 14:26
 */


public enum StatusCode {
    SUCCESS("success", 200), ERROR("error", 500);
    private String msg;
    private Integer code;

    StatusCode(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    StatusCode(Integer code) {
        this.code = code;
    }

    StatusCode(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }

}
